package com.service.business.borrow.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.service.business.borrow.service.SysBorrowConfigService;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.mapper.SysBorrowConfigMapper;
import com.service.dao.model.SysBorrowConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class SysBorrowConfigServiceImpl extends ServiceImpl<SysBorrowConfigMapper, SysBorrowConfig>
	implements SysBorrowConfigService {

	@Autowired
	private SysBorrowConfigMapper borrowConfigMapper;

	/**
	 * 分页查询借贷系统配置
	 *
	 * @return
	 */
	@Override
	public SysBorrowConfig getLastBorrowConfig() {
		SysBorrowConfig config = borrowConfigMapper.getLastBorrowConfig();
		return config;
	}
}
